home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
olrdrs
/
qwkndt1a.zip
/
MAXIMUS.SCR
< prev
next >
Wrap
Text File
|
1992-11-06
|
2KB
|
82 lines
# Sample script for logging on to a Maximus board.
# replace YOURNAME and YOURPASS with your name or handle and
# your password. This is only a model, and will probably need
# to be modified to some degree.
#
timeout 10
# Send a bunch of returns, sometimes necessary with HS modem
send "\r\r\r\r"
# Wait for name: prompt
expect "ame:" "\r" 10
# Send our name.
send "YOURNAME\r"
# Wait for name confirmation prompt.
expect ",n]?" "\r" 2
# Confirm. Default is "Y' so just send return.
send "\r"
# Wait for password prompt.
expect "word:" "\r" 2
# Send our password
send "YOURPASS\r"
# Get through intro screens by pressing return at every
# "Press ENTER to continue" prompt.
pausestr "NTER to continue" "\r"
# Wait for "Check for mail?" prompt.
expect "/N]?" "\r" 10
# Don't check, we'll be downloading it anyway.
send "\r"
# Bump up timeout value.
timeout 30
# Wait for main menu prompt.
expect "ect:" "\r" 2
# Choose "Offline reader"
send "o"
# Beginning of .REP upload section. Only executed if there is a .REP
# packet waiting.
repbegin
expect "ect:" "\r" 2
# Choose "Upload"
send "U"
expect "ect:" "\r" 2
# Choose "Zmodem"
send "Z"
# Wait a few seconds for Zmodem to fire up.
sleep 4
# Upload the .REP packet
upload
# End of .REP upload section
repend
expect "ect:" "\r" 2
# Choose "Download"
send "D"
# Go through several prompts, choosing default each time.
expect "ect:" "\r" 2
send "\r"
expect "ect:" "\r" 2
send "\r"
expect "ect:" "\r" 2
# Choose "Pack in .QWK format"
send "p"
# Wait for "Download this packet" prompt.
expect ",n]?"
# Yes, send it.
send "Y"
# Wait for protocol prompt.
expect "ect:" "\r" 2
# Choose "D" (DSZ Moby Turbo on this particular board)
send "D"
# Wait a few seconds for Zmodem to fire up.
sleep 4
# Download it!
download
# Wait for prompt.
expect "ect:" "\r" 2
# Goodbye!
send "G"
expect "elp]" "\r" 2
# Yes, we're sure.
send "\r"
expect "elp]" "\r" 2
# No, we don't want to leave feedback.
send "\r"